package Agent;

import java.util.ArrayList;

public class Percepts {

	private String name;
	
	private ArrayList<String> values;
	
	public Percepts(String name)
	{
		this.name = name;
		values = new ArrayList<>();
	}
	
	public String getName()
	{
		return name;
	}
	
	public boolean contain(String value)
	{
		return value.contains(value);
	}
	
	public void addValue(String value)
	{
		if(!values.contains(value))
			values.add(value);
	}
	
	public void remove(String value)
	{
		if(!value.contains(value))
		{
			for(int i =0;i< value.length();i++)
			{
				if(values.get(i).equals(value))
				{	
					values.remove(i);
					break;
				}
			}
		}
	}
	
	public ArrayList<String> getValues()
	{
		return values;
	}
}
